package com.wmx.main.text05.breeder;

import com.wmx.main.text05.animal.Animal;

/**
 * @author:wmx 2025-03-29 14:05
 * 功能:饲养员的抽象类
 * @param name 名字
 * @param kind 种类
 **/


public abstract class Breeder {
    private  String name;
    private  String kind;

    public Breeder(String name, String kind) {
        this.name = name;
        this.kind = kind;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getKind() {
        return kind;
    }

    public void setKind(String kind) {
        this.kind = kind;
    }

    @Override
    public String toString() {
        return "Animal{" +
                "name='" + name + '\'' +
                ", kind='" + kind + '\'' +
                '}';
    }

    /**
     * 动作:喂养
     */
    public abstract <T extends Animal> void  feed(T t);
    /**
     * 动作:巡查
     */
    public abstract <T extends  Animal> void  patrol(T t);
    /**
     * 动作:检查
     */
    public abstract <T extends  Animal> void  examine(T t);


}
